-- GENERATED SPELL FOR [Umbral Brute] --


function spell0_31320(pUnit, Event) --@Strike,n/a--
pUnit:FullCastSpellOnTarget(13446,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_31320', 588, 1)
end

function spell1_31320(pUnit, Event) --@Uppercut,n/a--
pUnit:FullCastSpellOnTarget(10966,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_31320', 639, 1)
end

function Sorts_31320(pUnit, Event)
local choix_sorts_31320 = math.random(0, 1)
if choix_sorts_31320 == 0 then
pUnit:RegisterEvent('spell0_31320', 1, 1)
end
if choix_sorts_31320 == 1 then
pUnit:RegisterEvent('spell1_31320', 1, 1)
end
end

function mob31320_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_31320', math.random(1500, 3000), 1)
end

function mob31320_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob31320_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob31320_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(31320, 1, 'mob31320_Action')
RegisterUnitEvent(31320, 2, 'mob31320_Leave')
RegisterUnitEvent(31320, 3, 'mob31320_Kill')
RegisterUnitEvent(31320, 4, 'mob31320_Die')
